package com.shijie.sjoj.model.api.user;

import com.shijie.sjoj.model.pojo.entity.User;

/**
 * 用户安全服务接口
 *
 * @author ZSJ
 */
public interface UserSecurityService {

    /**
     * 获取密码
     *
     * @param user 用户
     * @return User
     */
    User obtainPassword(User user);

    /**
     * 设置新密码
     *
     * @param user 用户
     * @return User
     */
    boolean newPassword(User user);

    /**
     * 更换手机号
     *
     * @param user 用户
     * @return boolean
     */
    boolean replacePhone(User user);


}
